<div class="page">
  <div class="total_currnet">
    <p>共</p><b><%= @all_albums.length %></b><p>条&nbsp;</p>
    <b><%= @albums.total_pages %></b><p>页&nbsp;</p>
    <p>当前第：</p><b><%= @albums.current_page %></b><p>页</p>
  </div>
  <div class="page_turner"><%= page_turner(:album, @albums) %></div>
</div>
<div class="index">
  <% @albums.each do |album| %>
  <div id="album_<%= album.id %>" class="monomer">
      <div class="content">
        <div class="<%= album.new? ? 'monomer_new':'monomer_old' %>">
          <div class="picture">
            <% if album.photos.length == 0 %>
              <%= image_tag 'valleyer/nil_album.jpg' %>
            <% else %>
              <%= photo_image_tag album.new_photo_of_the_album, :height => 105 %>
            <% end %>
          </div>
          <div class="operate">
            <div class="summarize">
              <div class="name">
                <%= link_to truncate(album.name, :length => 5),
                  album_url(album),
                  :target => :_blanck,
                  :title => album.name
              %>
                <b>(<%= album.photos.length %>)</b>
              </div>
              <p class="message"><%= album.created_at.strftime("%Y年%m月%d日") %>更新</p>
              <p class="message">浏览(<%= album.browse_records_count %>)评论(<%= album.post_sessions.length %>)</p>
            </div>
          </div>
        </div>
      </div>
      <div class="operate">
        <%#*<a class="button">进行审核</a>%>
        <%#*<a class="button">确认通过</a>%>
        <%= link_to_remote "删除",
          :update => :albums_index,
          :url => back_stages_show_album_url(album,
          :document_type_name => @document_type_name,
          :name => @sreach_name,
          :time_ago => @sreach_time,
          :page_number => @albums.current_page),
					:confirm => "确认删除?",
          :loading => "Effect.Fade('album_#{album.id}')",
          :method => :delete,
          :html => {
          :class => :button
          }
        %>
      </div>
    </div>
  <% end %>
</div>
<div class="page">
  <div class="total_currnet">
    <p>共</p><b><%= @all_albums.length %></b><p>条&nbsp;</p>
    <b><%= @albums.total_pages %></b><p>页&nbsp;</p>
    <p>当前第：</p><b><%= @albums.current_page %></b><p>页</p>
  </div>
  <div class="page_turner"><%= page_turner(:album, @albums) %></div>
</div>
<!--翻页器-->
<% remote_form_for "相册翻页",
  :update => :albums_index,
  :url => back_stages_show_albums_url,
  :method => :get,
  :html => {
  :id => :album_page_tumer
} do
%>
  <%= hidden_field_tag :page_number %>
  <%= hidden_field_tag :document_type_name, @document_type_name %>
  <%= hidden_field_tag :name, @sreach_name %>
  <%= hidden_field_tag :time_ago, @sreach_time %>
<% end %>